1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : 건진대상자자료연계
- * 설 명 : 건진대상자자료연계
- * 설 계 자 :
- * 작 성 자 : 임여원
- * 작 성 일 : 2009.05.29
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>건진대상자자료연계</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <linkfiletrgtlst>
- <item>
- <sel/>
- <cmpynm/>
- <pid/>
- <hngnm/>
- <hopedd/>
- <judgdd/>
- <rrgstno/>
- <statflag/>
- <examnm/>
- <cmpyid/>
- <insucorpbrchcd/>
- <civilaplflag/>
- <bizoffccd/>
- <deptcd/>
- <insutrgtflag/>
- <insuflag/>
- <plceflag/>
- <scndhptstrgtyn/>
- <insuid/>
- <jobkindflag/>
- <entcodd/>
- <clntempid/>
- <stmccncrflag/>
- <largeintescncrflag/>
- <livcncrflag/>
- <mamcncrflag/>
- <cervcncrflag/>
- <stmccncryn/>
- <largeintescncryn/>
- <livcncrtrgtyn/>
- <mamcncryn/>
- <cervcncryn/>
- <fsthptstrgtyn/>
- <subscrhngnm/>
- <subscrrrgstno/>
- <cncrcountryyn/>
- <trgtlinkflag/>
- <fstrsltlinkflag/>
- <scndrsltlinkflag/>
- <healexaminqrlinkflag/>
- <orallinkflag/>
- <oralinqrlinkflag/>
- <cancerlinkflag/>
- <cancerinqrlinkflag/>
- <medcancerlinkflag/>
- <rsrvdd/>
- <rsrvno/>
- <healexamflag/>
- <healexamdetlflag/>
- <rrgstno1/>
- <rrgstno2/>
- </item>
- </linkfiletrgtlst>
- <linkfilecmpylst>
- <item>
- <sel/>
- <appyear/>
- <cmpyid/>
- <cmpynm/>
- <insucorpbrchcd/>
- <insucorpbrchnm/>
- <civilaplflag/>
- <bizoffccd/>
- <bizoffcnm/>
- <cmpyno/>
- <cmpylinkflag/>
- </item>
- </linkfilecmpylst>
- <linkfile>
- <cmpy>
- <cmpyfile/>
- </cmpy>
- <trgt>
- <trgtfile/>
- <fstrsltfile/>
- <scndrsltfile/>
- <healexaminqrfile/>
- <oralfile/>
- <oralinqrfile/>
- <cancercountryfile/>
- <cancerfile/>
- <cancerinqrfile/>
- </trgt>
- </linkfile>
- <info>
- <patinfo>
- <item>
- <rgstno1/>
- <rgstno2/>
- <hngnm/>
- </item>
- </patinfo>
- <rsrvacptinfo>
- <item>
- <rsrvdd/>
- <rsrvno/>
- <healexamdetlflag/>
- <hopedd/>
- <rsrvtm/>
- <pid/>
- <orddd/>
- <healexampid/>
- <rcptstat/>
- <disccd/>
- <cmpyflag/>
- <cmpycd/>
- <bizoffccd/>
- <deptcd/>
- <clntempid/>
- <entcodd/>
- <jobkindflag/>
- <insucorpbrchcd/>
- <insutrgtflag/>
- <insuflag/>
- <relacd/>
- <plceflag/>
- <scndhptstrgtyn/>
- <oraltestyn>N</oraltestyn>
- <freecncrtrgtyn/>
- <livcncrtrgtyn/>
- <livcncrflag/>
- <stmccncrflag/>
- <stmccncryn/>
- <largeintescncrflag/>
- <largeintescncryn/>
- <mamcncryn/>
- <mamcncrflag>2</mamcncrflag>
- <cervcncrflag/>
- <cervcncryn/>
- <remcnts/>
- <rsrvflag/>
- <rsltcnstflag/>
- <rsltcnstrsrvdd/>
- <jobposcd/>
- <empid/>
- <healcntrcd/>
- <spclhealexamflag/>
- <schlgrde/>
- <clsid/>
- <studid/>
- <medicostyn/>
- <insuclamyn/>
- <judgdrid/>
- <statflag/>
- <calcyn/>
- <pkgcd/>
- <conseq/>
- <pkguncocd/>
- <ownuncoamt/>
- <cmpynm/>
- <bizoffcnm/>
- <deptnm/>
- <healcntrnm/>
- <insucorpbrchnm/>
- <livcncrtrgtyn2/>
- <pkgnm/>
- <EkgYN/>
- <cmpynm/>
- <bizoffcnm/>
- <armyhos/>
- <oldhopedd/>
- <oldrsrvno/>
- <oldhealexamflag/>
- <acpt_insuid/>
- <acpt_insucd/>
- <subscrrrgstno1/>
- <subscrrrgstno2/>
- <subscrhngnm/>
- <ownbamt/>
- <healexamplacecd/>
- <etccd/>
- <dcamt/>
- <adddcamt/>
- </item>
- </rsrvacptinfo>
- </info>
- </main>
- <send>
- <srchappyear/>
- <srchfromdd/>
- <srchtodd/>
- <srchpid/>
- <srchpnm/>
- <srchcmpyid/>
- <srchcmpynm/>
- <srchhealexamflag/>
- <srchhealexamdetlflag/>
- <srchlinkfileflag/>
- <srchcondflag>H</srchcondflag>
- <cret>
- <cmpylink/>
- <linkfileflag/>
- <judgdd/>
- <judgdrid/>
- </cret>
- <save>
- <cmpystat/>
- <trgtstat/>
- </save>
- <cmpyinfo>
- <srchappyear/>
- <srchcmpycd/>
- </cmpyinfo>
- </send>
- <init>
- <baseinfo>
- <linkfilelst/>
- <linkflaglst/>
- <statlst/>
- <insutrgtflag/>
- <insuflag/>
- <plceflag/>
- <jobkindflag/>
- <cancerapplst/>
- <drlst>
- <itemdr/>
- </drlst>
- </baseinfo>
- <datalink>
- <folderpath/>
- </datalink>
- </init>
- <hidden>
- <exestat/>
- <popupmenu>
- <item>
- <name>수신자격조회</name>
- <func>fRecvQualRef</func>
- </item>
- </popupmenu>
- <cmpyinfo/>
- <cmpyinfodetl>
- <deptlst/>
- </cmpyinfodetl>
- </hidden>
- <senddr>
- <srchhealexamflag/>
- <srchhealexamdetlflag/>
- <srchcond/>
- </senddr>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/healthexamrsrvacptweb/js/AHA.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fGetBasicCdList();
- fInit();
- btn_trgt.dispatch("DOMActivate");
- model.refresh();
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <submission id="TRAHA00001"/>
- <submission id="TRAHA00002"/>
- <submission id="TRAHA05101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cmpyinfo" replace="instance" resultref="/root/hidden/cmpyinfo"/>
- <submission id="TRAHA04080" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/linkfilecmpylst"/>
- <submission id="TRAHA04081" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cret" replace="instance" resultref="/root/main/linkfile"/>
- <submission id="TRAHA04084" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/linkfiletrgtlst"/>
- <submission id="TRAHA04085" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cret" replace="instance" resultref="/root/main/linkfile"/>
- <submission id="TRAHB01504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/senddr" replace="instance" resultref="/root/init/baseinfo/drlst"/>
- <submission id="TXAHA04080" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/hidden/exestat"/>
- <submission id="TXAHA04081" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/hidden/exestat"/>
- <submission id="TXAHA00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/drug" replace="instance" resultref="/root/hidden"/>
- </model>
- <script type="javascript">
- <![CDATA[
- m_vHealexamflag = "";
- m_vHealexamdetlflag = "";
-
- /****************************************************************************************************
- *** 기초코드조회
- **************************************************************************************************/
- function fGetBasicCdList() {
- zbcfGetCodeList( new Array("A0615","A0107","A0108","A0109","A0110","A0112"),
- new Array("/root/init/baseinfo/linkflaglst" // 자료연계상태구분
- ,"/root/init/baseinfo/statlst" // 건진상태구분
- ,"/root/init/baseinfo/insutrgtflag" // 직역구분
- ,"/root/init/baseinfo/insuflag" //가입구분
- ,"/root/init/baseinfo/plceflag" //장소구분
- ,"/root/init/baseinfo/jobkindflag" //직종구분
- ) );
- healGetCodeList( new Array("G104")
- , new Array("/root/init/baseinfo/cancerapplst" // 암적용구분
- ) );
-
- healGetCodeListSubmit( new Array("S280")
- , new Array("/root/init/baseinfo/linkfilelst"), false);
- model.removenode("/root/init/baseinfo/linkfilelst/S280[cdid='']");
-
- //판정의조회 [일반건진 판정의 조회]
- model.makeValue("/root/senddr/srchcond", "J");
- model.makeValue("/root/senddr/srchhealexamflag", "G") ;
- model.makeValue("/root/senddr/srchhealexamdetlflag", "G01") ;
- submit("TRAHB01504", false);
-
- model.refresh();
- }
-
- /****************************************************************************************************
- *** 화면 초기화
- **************************************************************************************************/
- function fInit() {
- var sFlag = getScreenMenuParameter();
- var curDate = getCurrentDate().toDate();
-
- if(sFlag == "") {
- m_vHealexamflag = "C";
- m_vHealexamdetlflag = "C01";
- }else {
- m_vHealexamflag = sFlag.substr(0,1);
- m_vHealexamdetlflag = sFlag;
- }
-
- model.setValue(cmb_appyear.attribute("ref") , curDate.getDateFormat('YYYY'));
- model.setValue(ipt_fromdd.attribute("ref") , getCurrentDate() );
- model.setValue(ipt_todd.attribute("ref") , getCurrentDate());
- model.setValue("/root/send/cret/judgdd", getCurrentDate());
- model.setValue("/root/send/srchhealexamflag", m_vHealexamflag);
- model.setValue("/root/send/srchhealexamdetlflag", m_vHealexamdetlflag);
-
- grd_linkcmpylst.fixedcellcheckbox(0,grd_linkcmpylst.colRef("sel")) = true;
- grd_linktrgtlst.fixedcellcheckbox(0,grd_linktrgtlst.colRef("sel")) = true;
-
- rdo_linkfileflag.select(0);
- model.setValue("/root/init/datalink/folderpath" , "C:\\NHICGG\\apps");
-
- }
- /****************************************************************************************************
- *** 조회 컨트롤 보여주기 초기화
- **************************************************************************************************/
- function fViewSrchCntrl(vFlag) {
- var vCmpy = false;
- var vTrgt = false
-
- switch(vFlag) {
- case "0" : vTrgt = true;
- break;
- case "1" : vCmpy = true;
- break;
- default : break;
- }
- // 대상자
- cap_term.visible = vTrgt;
- cap_pat.visible = vTrgt;
- cap_condflag.visible = vTrgt;
- ipt_fromdd.visible = vTrgt;
- ipt_todd.visible = vTrgt;
- ipt_pid.visible = vTrgt;
- ipt_pnm.visible = vTrgt;
- rdo_condflag.visible = vTrgt;
- btn_searchpat.visible = vTrgt;
- //사업체
- cap_cmpyid.visible = vCmpy;
- cap_cmpynm.visible = vCmpy;
- ipt_cmpyid.visible = vCmpy;
- ipt_cmpynm.visible = vCmpy;
- }
- /****************************************************************************************************
- *** 연계파일 생성활 사업체 리스트 조회
- **************************************************************************************************/
- function fGetLinkFileCmpyList() {
- submit("TRAHA04080");
- }
-
- /****************************************************************************************************
- *** 연계파일을 생성활 대상자를 조회
- **************************************************************************************************/
- function fGetLinkFileTrgtList() {
- submit("TRAHA04084");
- }
- /****************************************************************************************************
- *** 단체 연계파일을 생성한다.
- **************************************************************************************************/
- function fSetCmpyLinkFileCret() {
- var cmpyLink = "";
- grd_linkcmpylst.clearStatus();
- for(var i=1; i < grd_linkcmpylst.rows; i++ ) {
- if("Y" == grd_linkcmpylst.valueMatrix(i , grd_linkcmpylst.colRef("sel"))) {
- grd_linkcmpylst.addStatus(i ,"insert");
- }
- }
- cmpyLink = getGridUpdateData(grd_linkcmpylst);
-
- if(cmpyLink != ""){
- model.makeValue("/root/send/cret/cmpylink", cmpyLink);
- model.makeValue("/root/send/cret/linkfileflag", model.getValue("/root/send/srchlinkfileflag"));
- if(submit("TRAHA04081")) {
- fCretLinkFile("C");
- messageBox("파일생성이","I002");
- }
- }else {
- messageBox("사업장을","C002");
- return;
- }
- }
- /****************************************************************************************************
- *** 단체 연계파일을 생성한다.
- **************************************************************************************************/
- function fSetTrgtLinkFileCret() {
- var trgtLink = "";
- grd_linktrgtlst.clearStatus();
- for(var i=1; i < grd_linktrgtlst.rows; i++ ) {
- if("Y" == grd_linktrgtlst.valueMatrix(i, grd_linktrgtlst.colRef("sel"))){
- grd_linktrgtlst.addStatus(i ,"insert");
- }
- }
- trgtLink = getGridUpdateData(grd_linktrgtlst);
- if(trgtLink != ""){
- model.makeValue("/root/send/cret/trgtlink", trgtLink);
- var linkfileflag = model.getValue("/root/send/srchlinkfileflag");
- var judgdd = model.getValue("/root/send/cret/judgdd");
- var judgdrid = model.getValue("/root/send/cret/judgdrid");
- model.makeValue("/root/send/cret/linkfileflag", linkfileflag);
-
- if(linkfileflag == "03") {
- if(judgdd == "") {
- messageBox("판정일자를" , "C001");
- return;
- }
-
- if(judgdrid == "") {
- messageBox("판정의사를" , "C002");
- return;
- }
-
- }
-
- if(submit("TRAHA04085")) {
- fCretLinkFile("T");
- messageBox("파일생성이","I002");
- }
- }else {
- messageBox("건진대상자를","C002");
- return;
- }
- }
-
- /****************************************************************************************************
- *** 파일을 생성한다.
- **************************************************************************************************/
- function fMakeFile(vFileName,vFileCont) {
- if(vFileName == null || vFileCont == "") return;
- if(vFileCont == null || vFileCont == "") return;
- var folderPath = model.getValue("/root/init/datalink/folderpath");
- var defaultFolder = folderPath;
- fso=new ActiveXObject('Scripting.FileSystemObject');
- var folderExist = false;
- var fileExist = true;
- var fileCnt = 0;
-
- // 폴더가 존재하는 체크
- if(fso.FolderExists(defaultFolder)){
- folderExist = true;
- }else {
- folderExist = false;
- fso.CreatFolder(defaultFolder);
- }
- /*
- while(fileExist) {
- // 파일이 존재하는 체크
- if(fso.FileExists(defaultFolder + "\\" + vFileName)) {
- fileCnt++;
- }else {
- if(fileCnt > 0) {
- vFileName = "(" + fileCnt + ")" + vFileName;
- }
- fileExist = false;
- }
- }*/
- filePath = defaultFolder + "\\" + vFileName;
-
- // 파일 생성
- if(filePath != "") {
- fso.CreateTextFile(filePath,true);
- file = fso.OpenTextFile(filePath,2,true)
- file.Write(vFileCont);
- fso.Close;
- file.Close();
- }
-
- }
- /****************************************************************************************************
- *** 연계파일을 생성한다.
- **************************************************************************************************/
- function fCretLinkFile(vFlag){
- var cmpyFile,trgtFile,fstRsltFile,scndRsltFile,healexamInqrFile,oralFile,oralInqrFile,cancerFile,cancerInqrFile = "";
- var selFile = model.getValue("/root/send/cret/linkfileflag");
- var node = null;
- var sel = selFile;
- node = instance1.selectNodes("/root/init/baseinfo/linkfilelst/S280[cdid='" + sel + "']");
- if(vFlag == "C") {
- if(sel == "01") {
- if(node.length > 0 && node != null) {
- cmpyFile = node.item(0).cmt.text + "_" + getCurrentDate() + ".dat";
- fMakeFile(cmpyFile,model.getValue("/root/main/linkfile/cmpy/cmpyfile"));
- }
- }
- }else if(vFlag == "T") {
- if(sel == "02") { // 대상자
- if(node.length > 0 && node != null) {
- trgtFile = node.item(0).cmt.text + "_" + getCurrentDate() + ".dat";
- fMakeFile(trgtFile,model.getValue("/root/main/linkfile/trgt/trgtfile"));
- }
- }else if(sel == "03") { // 1차 검진결과
- if(node.length > 0 && node != null) {
- fstRsltFile = node.item(0).cmt.text + "_" + getCurrentDate() + ".dat";
- fMakeFile(fstRsltFile,model.getValue("/root/main/linkfile/trgt/fstrsltfile"));
- }
- }else if(sel == "04") { // 2차 검진결과
- if(node.length > 0 && node != null) {
- scndRsltFile = node.item(0).cmt.text + "_" + getCurrentDate() + ".dat";
- fMakeFile(scndRsltFile,model.getValue("/root/main/linkfile/trgt/scndrsltfile"));
- }
- }else if(sel == "05") { // 건강검진문진표
- if(node.length > 0 && node != null) {
- healexamInqrFile = node.item(0).cmt.text + "_" + getCurrentDate() + ".dat";
- fMakeFile(healexamInqrFile,model.getValue("/root/main/linkfile/trgt/healexaminqrfile"));
- }
- }else if(sel == "06") { // 구강검진
- if(node.length > 0 && node != null) {
- oralFile = node.item(0).cmt.text + "_" + getCurrentDate() + ".dat";
- fMakeFile(oralFile,model.getValue("/root/main/linkfile/trgt/oralfile"));
- }
- }else if(sel == "07") { // 구강문진표
- if(node.length > 0 && node != null) {
- oralInqrFile = node.item(0).cmt.text + "_" + getCurrentDate() + ".dat";
- fMakeFile(oralInqrFile,model.getValue("/root/main/linkfile/trgt/oralinqrfile"));
- }
- }else if(sel == "08") {
- if(node.length > 0 && node != null) {
- oralInqrFile = node.item(0).cmt.text + "_" + getCurrentDate() + ".dat";
- fMakeFile(oralInqrFile,model.getValue("/root/main/linkfile/trgt/cancercountryfile"));
- }
- }else if(sel == "09") {
- if(node.length > 0 && node != null) {
- oralInqrFile = node.item(0).cmt.text + "_" + getCurrentDate() + ".dat";
- fMakeFile(oralInqrFile,model.getValue("/root/main/linkfile/trgt/cancerfile"));
- }
- }else if(sel == "10") {
- if(node.length > 0 && node != null) {
- oralInqrFile = node.item(0).cmt.text + "_" + getCurrentDate() + ".dat";
- fMakeFile(oralInqrFile,model.getValue("/root/main/linkfile/trgt/cancerinqrfile"));
- }
- }
- }
- }
- /**************************************************************************************************
- *** 대상자의 자료연계상태를 저장한다.
- **************************************************************************************************/
- function fSaveTrgtLinkStat() {
- grd_linktrgtlst.clearStatus();
- for(var i=0; i < grd_linktrgtlst.rows; i++) {
- if("Y" == grd_linktrgtlst.valueMatrix(i , grd_linktrgtlst.colRef("sel"))) {
- grd_linktrgtlst.addStatus(i , "insert");
- }
- }
- var trgtStat = getGridUpdateData(grd_linktrgtlst);
- if(trgtStat == "") {
- messageBox("건진자를","C002");
- }else {
- model.makeValue("/root/send/save/trgtstat",trgtStat);
- if(submit("TXAHA04081")) {
- fGetLinkFileTrgtList();
- }
- }
- }
-
- function fSaveCmpyLinkStat() {
- grd_linkcmpylst.clearStatus();
- for(var i=0; i < grd_linkcmpylst.rows; i++) {
- if("Y" == grd_linkcmpylst.valueMatrix(i , grd_linkcmpylst.colRef("sel"))) {
- grd_linkcmpylst.addStatus(i , "insert");
- }
- }
- var cmpyStat = getGridUpdateData(grd_linkcmpylst);
- if(cmpyStat == "") {
- messageBox("건진자를","C002");
- }else {
- model.makeValue("/root/send/save/cmpystat",cmpyStat);
- if(submit("TXAHA04080")) {
- fGetLinkFileCmpyList();
- }
- }
- }
-
- /*===================================================================================================================
- @desc : 수진자격조회
- ====================================================================================================================*/
- function fRecvQualRef() {
- var idx = grd_linktrgtlst.row ;
- var rrgstno1 = grd_linktrgtlst.valueMatrix(idx , grd_linktrgtlst.colRef("rrgstno1"));
- var rrgstno2 = grd_linktrgtlst.valueMatrix(idx , grd_linktrgtlst.colRef("rrgstno2"));
- var hngnm = grd_linktrgtlst.valueMatrix(idx , grd_linktrgtlst.colRef("hngnm"));
- var hopedd = grd_linktrgtlst.valueMatrix(idx , grd_linktrgtlst.colRef("hopedd"));
-
- model.resetInstanceNode("/root/main/info/rsrvacptinfo/item");
- model.resetInstanceNode("/root/main/info/patinfo/item");
-
- model.setValue("/root/main/info/patinfo/item/rgstno1" , rrgstno1);
- model.setValue("/root/main/info/patinfo/item/rgstno2" , rrgstno2);
- model.setValue("/root/main/info/patinfo/item/hngnm" , hngnm);
- // 수진자격조회
- ahafGetInsuCnts(rrgstno1, rrgstno2 , hngnm);
- // 조회내역 등록
- grd_linktrgtlst.valueMatrix( idx , grd_linktrgtlst.colRef("cmpyid")) = model.getValue("/root/main/info/rsrvacptinfo/item/cmpycd").getTrim();
- grd_linktrgtlst.valueMatrix( idx , grd_linktrgtlst.colRef("insucorpbrchcd")) = model.getValue("/root/main/info/rsrvacptinfo/item/insucorpbrchcd");
- grd_linktrgtlst.valueMatrix( idx , grd_linktrgtlst.colRef("insutrgtflag")) = model.getValue("/root/main/info/rsrvacptinfo/item/insutrgtflag");
- grd_linktrgtlst.valueMatrix( idx , grd_linktrgtlst.colRef("insuflag")) = model.getValue("/root/main/info/rsrvacptinfo/item/insuflag");
- grd_linktrgtlst.valueMatrix( idx , grd_linktrgtlst.colRef("plceflag")) = model.getValue("/root/main/info/rsrvacptinfo/item/plceflag");
- grd_linktrgtlst.valueMatrix( idx , grd_linktrgtlst.colRef("scndhptstrgtyn")) = model.getValue("/root/main/info/rsrvacptinfo/item/scndhptstrgtyn");
- grd_linktrgtlst.valueMatrix( idx , grd_linktrgtlst.colRef("insuid")) = model.getValue("/root/main/info/rsrvacptinfo/item/acpt_insuid");
- grd_linktrgtlst.valueMatrix( idx , grd_linktrgtlst.colRef("jobkindflag")) = "1"; // 디폴트 사무직 셋팅
- grd_linktrgtlst.valueMatrix( idx , grd_linktrgtlst.colRef("entcodd")) = model.getValue("/root/main/info/rsrvacptinfo/item/entcodd");
- grd_linktrgtlst.valueMatrix( idx , grd_linktrgtlst.colRef("stmccncrflag")) = model.getValue("/root/main/info/rsrvacptinfo/item/stmccncrflag");
- grd_linktrgtlst.valueMatrix( idx , grd_linktrgtlst.colRef("largeintescncrflag")) = model.getValue("/root/main/info/rsrvacptinfo/item/largeintescncrflag");
- grd_linktrgtlst.valueMatrix( idx , grd_linktrgtlst.colRef("livcncrflag")) = model.getValue("/root/main/info/rsrvacptinfo/item/livcncrflag");
- grd_linktrgtlst.valueMatrix( idx , grd_linktrgtlst.colRef("mamcncrflag")) = model.getValue("/root/main/info/rsrvacptinfo/item/mamcncrflag");
- grd_linktrgtlst.valueMatrix( idx , grd_linktrgtlst.colRef("cervcncrflag")) = model.getValue("/root/main/info/rsrvacptinfo/item/cervcncrflag");
- grd_linktrgtlst.valueMatrix( idx , grd_linktrgtlst.colRef("stmccncryn")) = model.getValue("/root/main/info/rsrvacptinfo/item/stmccncryn");
- grd_linktrgtlst.valueMatrix( idx , grd_linktrgtlst.colRef("largeintescncryn")) = model.getValue("/root/main/info/rsrvacptinfo/item/largeintescncryn");
- grd_linktrgtlst.valueMatrix( idx , grd_linktrgtlst.colRef("livcncrtrgtyn")) = model.getValue("/root/main/info/rsrvacptinfo/item/livcncrtrgtyn");
- grd_linktrgtlst.valueMatrix( idx , grd_linktrgtlst.colRef("mamcncryn")) = model.getValue("/root/main/info/rsrvacptinfo/item/mamcncryn");
- grd_linktrgtlst.valueMatrix( idx , grd_linktrgtlst.colRef("cervcncryn")) = model.getValue("/root/main/info/rsrvacptinfo/item/cervcncryn");
- grd_linktrgtlst.valueMatrix( idx , grd_linktrgtlst.colRef("fsthptstrgtyn")) = model.getValue("/root/main/info/rsrvacptinfo/item/fsthptstrgtyn") == ""? "N" : model.getValue("/root/main/info/rsrvacptinfo/item/fsthptstrgtyn");
-
-
- // 사업장 정보 셋팅
- if(fGetCmpyDetlCdList(model.getValue("/root/main/info/rsrvacptinfo/item/cmpycd").getTrim() , hopedd)) {
- var node = instance1.selectNodes("/root/hidden/cmpyinfo/cmpy");
- var bizNode = null;
- if( node != null ) {
- //grd_linktrgtlst.valueMatrix( idx , grd_linktrgtlst.colRef("insucorpbrchcd")) = model.getValue("/root/hidden/cmpyinfo/cmpy/insucorpbrchcd");
- //grd_linktrgtlst.valueMatrix( idx , grd_linktrgtlst.colRef("civilaplflag")) = model.getValue("/root/hidden/cmpyinfo/cmpy/civilaplflag");
- bizNode = instance1.selectNodes("/root/hidden/cmpyinfo/biz");
- detNode = instance1.selectNodes("/root/hidden/cmpyinfo/dept");
- if(bizNode.length > 0 ) {
- if(bizNode.length == 1) {
- grd_linktrgtlst.valueMatrix( idx , grd_linktrgtlst.colRef("bizoffccd")) = bizNode.item(0).bizoffccd.text;
- }else {
- fMoveFocus(grd_linktrgtlst , grp_biz );
- grp_biz.visible = true;
- }
- if(detNode.length == 0) {
- grd_linktrgtlst.valueMatrix( idx , grd_linktrgtlst.colRef("deptcd")) = "ZZZZZZZ";
- }
- }else {
- grd_linktrgtlst.valueMatrix( idx , grd_linktrgtlst.colRef("bizoffccd")) = "ZZZZZZ";
- grd_linktrgtlst.valueMatrix( idx , grd_linktrgtlst.colRef("deptcd")) = "ZZZZZZZ";
- }
- }
- }
- }
-
- /*===================================================================================================================
- @desc : 수진자격 조회 후 세부 내역 조회
- ====================================================================================================================*/
- function fInsuCnts(){
- /*
- var vCmpycd = model.getValue("/root/main/info/rsrvacptinfo/item/cmpycd");
- model.makeValue("/root/send/srchcmpyno", vCmpycd);
- model.makeValue("/root/send/srchcond", "D");
-
- if (submit("TRAHB00502",false)) {
- model.makeValue("/root/main/info/rsrvacptinfo/item/cmpynm", model.getValue("/root/hidden/cmpyinfodetl/item/cmpynm"));
- model.makeValue("/root/main/info/rsrvacptinfo/item/armyhos", model.getValue("/root/hidden/cmpyinfodetl/item/miltrcntrhospcd"));
- addComboItem("cmb_bizoffccd","ZZZZZZ","","above");
- addComboItem("cmb_deptcd","ZZZZZZ","","above");
- }
- var insuflag = model.getValue("/root/main/info/rsrvacptinfo/item/insuflag");
- if (insuflag == "2") {
- ipt_subscrhngnm.disabled = false;
- ipt_subscrrrgstno1.disabled = false;
- ipt_subscrrrgstno2.disabled = false;
- } else {
- ipt_subscrhngnm.disabled = true;
- ipt_subscrrrgstno1.disabled = true;
- ipt_subscrrrgstno2.disabled = true;
- }
-
- model.refresh(); */
- }
-
- /**
- * 업체별 영업소 및 부서정보 조회
- */
- function fGetCmpyDetlCdList(vCmpyCd , vHopeDD){
- if(vCmpyCd == "" ) return ;
- var appYear = "";
- if(vHopeDD == "" || vHopeDD == null) {
- appYear = fGetCurrentYear();
- }else {
- appYear = vHopeDD.substr(0 , 4);
- }
- model.makeValue("/root/send/cmpyinfo/srchcmpycd", vCmpyCd );
- model.makeValue("/root/send/cmpyinfo/srchappyear" , appYear);
- return submit("TRAHA05101");
- }
-
- /**=========================================================================================================================
- * 영업소 및 부서코드 입력 용이하도록 팝업이동
- * bMove : true이면 row이동
- ===========================================================================================================================*/
- function fMoveFocus(vGrd , vGrp){
-
- var idx = vGrd.row;
- if( idx < 1) return ;
-
- var y = parseInt( vGrd.attribute("top") ) + parseInt(vGrd.rowheight(0) ) + parseInt(vGrd.rowheight(1) )* idx ;
- var lim_y = parseInt( vGrd.attribute("top") ) + parseInt( vGrd.attribute("height") ) - parseInt(vGrp.attribute("height")) ;
- if( y > lim_y){
- y = lim_y ;
- }
- vGrp.attribute("top") = parseInt(y);
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:119px; height:14px; ">자료연계파일생성</caption>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="button1" class="btn3_letter8" style="left:5px; top:3px; width:125px; height:22px; ">
- <caption>연계파일생성경로</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.folderDialog("자료연계파일 생성경로");
- model.setValue("/root/init/datalink/folderpath" , fileName);
- opt_folderpath.refresh();
- ]]>
- </script>
- </button>
- <output id="opt_folderpath" ref="/root/init/datalink/folderpath" style="left:134px; top:4px; width:510px; height:19px; font-weight:bold; "/>
- </group>
- <button id="btn_delete" class="btn4_letter2" style="left:1136px; top:760px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/send/save/trgtstat");
- model.resetInstanceNode("/root/send/save/cmpystat");
-
- if(case_cmpy.selected == true) {
- fSaveCmpyLinkStat();
- }else if(case_trgt.selected == true) {
- fSaveTrgtLinkStat();
- }
- ]]>
- </script>
- </button>
- <switch id="switch1" style="left:0px; top:95px; width:1195px; height:662px; ">
- <case id="case_trgt" selected="true" style="left:0px; top:0px; width:1193px; height:662px; ">
- <caption id="caption3" class="tit_2" style="left:5px; top:11px; width:186px; height:13px; ">대상자연계</caption>
- <line id="line7" class="line_1" style="x1:5px; y1:25px; x2:1188px; y2:25px; "/>
- <datagrid id="grd_linktrgtlst" nodeset="/root/main/linkfiletrgtlst/item" caption="선택^사업장명^등록번호^성명^건진일자^판정일자^주민번호^상태^검사내역^사업장관리번호^소속지사^민원실^영업소^부서^직역구분^가입구분^장소구분^간염대상^증번호^직종구분^입사/취득일자^사번/군번^위암^대장암^간암^유방암^자궁경부암^위암대상^대장암대상^간암대상^유방암대상^자궁경부암여부^1차간염대상^가입자성명^가입자주민번호^국가암대상^대상자^1차검진^2차검진^검진 문진표^구강 검진^구강 문진표^암검진^암 문진표^의료급여암^예약등록일자^예약등록번호^건진구분^건진상세구분^주민번호1^주민번호2" colsep="^" colwidth="50, 100, 80, 100, 80, 80, 110, 80, 300, 100, 60, 50, 100, 100, 60, 60, 60, 60, 90, 60, 90, 80, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 80, 110, 70, 80, 80, 80, 80, 80, 80, 80, 80, 80, 100, 100, 100, 100, 100, 100" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:55px; width:1182px; height:601px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col ref="cmpynm"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="hopedd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="judgdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rrgstno" style="text-align:center; "/>
- <col disabled="true" ref="statflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/statlst/A0107">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="examnm"/>
- <col ref="cmpyid" type="inputbutton"/>
- <col ref="insucorpbrchcd" type="output" visibility="hidden"/>
- <col ref="civilaplflag" visibility="hidden"/>
- <col ref="bizoffccd" type="inputbutton"/>
- <col ref="deptcd" type="inputbutton"/>
- <col ref="insutrgtflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/insutrgtflag/A0108">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="insuflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/insuflag/A0109">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="plceflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/plceflag/A0110">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="scndhptstrgtyn" type="combo">
- <choices>
- <item>
- <label>대상</label>
- <value>Y</value>
- </item>
- <item>
- <label>비대상</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="insuid" type="input"/>
- <col ref="jobkindflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/jobkindflag/A0112">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="entcodd" type="inputdate"/>
- <col ref="clntempid" type="input"/>
- <col ref="stmccncrflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/cancerapplst/G104">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="largeintescncrflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/cancerapplst/G104">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="livcncrflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/cancerapplst/G104">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="mamcncrflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/cancerapplst/G104">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="cervcncrflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/cancerapplst/G104">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="stmccncryn" visibility="hidden"/>
- <col ref="largeintescncryn" visibility="hidden"/>
- <col ref="livcncrtrgtyn" visibility="hidden"/>
- <col ref="mamcncryn" visibility="hidden"/>
- <col ref="cervcncryn" visibility="hidden"/>
- <col ref="fsthptstrgtyn" visibility="hidden"/>
- <col ref="subscrhngnm" type="input" visibility="hidden"/>
- <col ref="subscrrrgstno" type="input" visibility="hidden"/>
- <col checkvalue="Y,N" disabled="true" ref="cncrcountryyn" type="checkbox" visibility="hidden"/>
- <col ref="trgtlinkflag" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/baseinfo/linkflaglst/A0615">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="fstrsltlinkflag" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/baseinfo/linkflaglst/A0615">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="scndrsltlinkflag" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/baseinfo/linkflaglst/A0615">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="healexaminqrlinkflag" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/baseinfo/linkflaglst/A0615">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="orallinkflag" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/baseinfo/linkflaglst/A0615">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="oralinqrlinkflag" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/baseinfo/linkflaglst/A0615">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="cancerlinkflag" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/baseinfo/linkflaglst/A0615">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="cancerinqrlinkflag" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/baseinfo/linkflaglst/A0615">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="medcancerlinkflag" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/baseinfo/linkflaglst/A0615">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="rsrvdd" visibility="hidden"/>
- <col ref="rsrvno" visibility="hidden"/>
- <col ref="healexamflag" visibility="hidden"/>
- <col ref="healexamdetlflag" visibility="hidden"/>
- <col ref="rrgstno1" visibility="hidden"/>
- <col ref="rrgstno2" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_linktrgtlst.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var changVal = grd_linktrgtlst.valueMatrix(grd_linktrgtlst.row,grd_linktrgtlst.col);
- for( var i = 0 ; i <= grd_linktrgtlst.selectedRows ; i++){
- grd_linktrgtlst.valueMatrix(grd_linktrgtlst.selectedRow(i), grd_linktrgtlst.col) = changVal;
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if(event.button == 3) {
- if(isDataCell()) {
- setPopupMenu("grd_linktrgtlst", false, "/root/hidden/popupmenu/item", "name", "func");
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var colIdx = grd_linktrgtlst.col;
- var cmpyId = grd_linktrgtlst.valueMatrix(grd_linktrgtlst.row , grd_linktrgtlst.colRef("cmpyid")).getTrim();
- var hopedd = grd_linktrgtlst.valueMatrix(grd_linktrgtlst.row , grd_linktrgtlst.colRef("hopedd"));
-
- if(grd_linktrgtlst.colRef("cmpyid") == colIdx) {
- fGetComnCd("SMAHA01500", "09" , "cd", cmpyId , grd_linktrgtlst.nodeset + "[" + grd_linktrgtlst.row + "]/cmpyid" , "/root/main/info/rsrvacptinfo/item/cmpynm");
- cmpyId = grd_linktrgtlst.valueMatrix(grd_linktrgtlst.row , grd_linktrgtlst.colRef("cmpyid")).getTrim();
- fGetCmpyDetlCdList(cmpyId, hopedd);
- grd_linktrgtlst.valueMatrix(grd_linktrgtlst.row , grd_linktrgtlst.colRef("insucorpbrchcd")) = model.getValue("/root/hidden/cmpyinfo/cmpy/insucorpbrchcd");
- grd_linktrgtlst.valueMatrix(grd_linktrgtlst.row , grd_linktrgtlst.colRef("civilaplflag")) = model.getValue("/root/hidden/cmpyinfo/cmpy/civilaplflag");
-
- }else if(grd_linktrgtlst.colRef("bizoffccd") == colIdx) {
- fGetCmpyDetlCdList(cmpyId, hopedd);
- fMoveFocus(grd_linktrgtlst , grp_biz)
- grp_biz.visible = true;
- }else if(grd_linktrgtlst.colRef("deptcd") == colIdx) {
- fGetCmpyDetlCdList(cmpyId, hopedd);
- var selBizOffcCd = grd_linktrgtlst.valueMatrix(grd_linktrgtlst.row , grd_linktrgtlst.colRef("bizoffccd"));
- var deptNode = instance1.selectNodes("/root/hidden/cmpyinfo/dept[bizoffccd='" +selBizOffcCd + "']");
- model.removeNodeset("/root/hidden/cmpyinfodetl/deptlst");
- if(deptNode.length > 0) {
- setCSVToNode( "/root/hidden/cmpyinfodetl" , getNodeListCSV(deptNode) ,"deptlst");
- fMoveFocus(grd_linktrgtlst , grp_dept )
- grp_dept.visible = true;
- }else {
- grd_linktrgtlst.valueMatrix(grd_linktrgtlst.row , grd_linktrgtlst.colRef("deptcd")) = "ZZZZZZZ";
- }
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_linkfiletrgt" class="btn5_letter6" style="left:1102px; top:5px; width:86px; height:19px; ">
- <caption>연계파일생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetTrgtLinkFileCret();
- ]]>
- </script>
- </button>
- <group id="grp_biz" visibility="hidden" style="left:840px; top:103px; width:155px; height:150px; ">
- <datagrid id="grd_bizlst" nodeset="/root/hidden/cmpyinfo/biz" caption="영업소코드^영업소명" colsep="^" colwidth="70, 70" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:20px; width:145px; height:125px; ">
- <col ref="bizoffccd"/>
- <col ref="bizoffcnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(isDataCell()) {
- grd_linktrgtlst.valueMatrix(grd_linktrgtlst.row , grd_linktrgtlst.colRef("bizoffccd")) = grd_bizlst.valueMatrix(grd_bizlst.row , grd_bizlst.colRef("bizoffccd"));
- button10.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </datagrid>
- <button id="button10" class="icon_plus" style="left:135px; top:3px; width:13px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //model.resetInstanceNode("/root/temp/rsrvcert");
- grp_biz.visible = false;
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_dept" visibility="hidden" style="left:1000px; top:103px; width:150px; height:150px; ">
- <datagrid id="grd_deptlst" nodeset="/root/hidden/cmpyinfodetl/deptlst" caption="부서코드^부서명" colsep="^" colwidth="70, 70" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:20px; width:140px; height:125px; ">
- <col ref="deptcd"/>
- <col ref="deptnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(isDataCell()) {
- grd_linktrgtlst.valueMatrix(grd_linktrgtlst.row , grd_linktrgtlst.colRef("deptcd")) = grd_deptlst.valueMatrix(grd_deptlst.row , grd_deptlst.colRef("deptcd"));
- button4.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </datagrid>
- <button id="button4" class="icon_plus" style="left:132px; top:3px; width:13px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //model.resetInstanceNode("/root/temp/rsrvcert");
- grp_dept.visible = false;
- ]]>
- </script>
- </button>
- </group>
- <line id="line8" class="line_3" style="x1:5px; y1:53px; x2:1189px; y2:53px; "/>
- <caption id="caption47" class="cell_1" style="left:5px; top:31px; width:73px; height:20px; vertical-align:middle; ">판정일자</caption>
- <caption id="caption2" class="cell_1" style="left:200px; top:31px; width:73px; height:20px; vertical-align:middle; ">판정의사</caption>
- <input id="input1" ref="/root/send/cret/judgdd" class="input_essential" inputtype="date" style="left:80px; top:31px; width:115px; height:19px; "/>
- <select1 id="combo1" ref="/root/send/cret/judgdrid" class="input_essential" appearance="minimal" style="left:275px; top:31px; width:125px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/drlst/itemdr">
- <label ref="drnm"/>
- <value ref="drid"/>
- </itemset>
- </choices>
- </select1>
- </case>
- <case id="case_cmpy">
- <caption id="caption1" class="tit_2" style="left:5px; top:6px; width:186px; height:14px; ">사업체연계</caption>
- <line id="line2" class="line_1" style="x1:5px; y1:25px; x2:1187px; y2:25px; "/>
- <datagrid id="grd_linkcmpylst" nodeset="/root/main/linkfilecmpylst/item" caption="선택^적용년도^사업장관리번호^사업장명^건강보험지사^건강보험지사명^민원실구분^영업소코드^영업소명^사업자등록번호^사업장" colsep="^" colwidth="70, 50, 100, 200, 100, 100, 100, 100, 150, 100, 90" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:30px; width:1182px; height:625px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col disabled="true" ref="appyear" type="combo">
- <choices>
- <item>
- <label>2009년</label>
- <value>2009</value>
- </item>
- <item>
- <label>2010년</label>
- <value>2010</value>
- </item>
- <item>
- <label>2011년</label>
- <value>2011</value>
- </item>
- <item>
- <label>2012년</label>
- <value>2012</value>
- </item>
- <item>
- <label>2013년</label>
- <value>2013</value>
- </item>
- <item>
- <label>2014년</label>
- <value>2014</value>
- </item>
- </choices>
- </col>
- <col ref="cmpyid"/>
- <col ref="cmpynm"/>
- <col ref="insucorpbrchcd"/>
- <col ref="insucorpbrchnm"/>
- <col ref="civilaplflag"/>
- <col ref="bizoffccd"/>
- <col ref="bizoffcnm"/>
- <col ref="cmpyno"/>
- <col ref="cmpylinkflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/linkflaglst/A0615">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_linkcmpylst.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var changVal = grd_linkcmpylst.valueMatrix(grd_linkcmpylst.row,grd_linkcmpylst.col);
- for( var i = 0 ; i <= grd_linkcmpylst.selectedRows ; i++){
- grd_linkcmpylst.valueMatrix(grd_linkcmpylst.selectedRow(i), grd_linkcmpylst.col) = changVal;
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_linkfilecmpy" class="btn5_letter6" style="left:1102px; top:5px; width:86px; height:19px; ">
- <caption>연계파일생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetCmpyLinkFileCret();
- ]]>
- </script>
- </button>
- </case>
- </switch>
- <group id="group2" style="left:0px; top:19px; width:1194px; height:45px; vertical-align:top; ">
- <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:45px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="cap_pat" class="search_name" style="left:766px; top:13px; width:89px; height:17px; ">환자검색 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1122px; top:12px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(case_trgt.selected == true) {
- fGetLinkFileTrgtList();
- }else if(case_cmpy.selected == true) {
- fGetLinkFileCmpyList();
- }
- ]]>
- </script>
- </button>
- <line id="line1" style="x1:1106px; y1:7px; x2:1106px; y2:39px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="cap_appyear" class="search_name" style="left:5px; top:14px; width:86px; height:17px; ">적용년도 :</caption>
- <caption id="cap_term" class="search_name" style="left:421px; top:13px; width:216px; height:17px; ">건진기간 : ~</caption>
- <select1 id="cmb_appyear" ref="/root/send/srchappyear" appearance="minimal" style="left:95px; top:13px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>2009년</label>
- <value>2009</value>
- </item>
- <item>
- <label>2010년</label>
- <value>2010</value>
- </item>
- <item>
- <label>2011년</label>
- <value>2011</value>
- </item>
- <item>
- <label>2012년</label>
- <value>2012</value>
- </item>
- <item>
- <label>2013년</label>
- <value>2013</value>
- </item>
- <item>
- <label>2014년</label>
- <value>2014</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_fromdd" ref="/root/send/srchfromdd" inputtype="date" style="left:510px; top:13px; width:100px; height:19px; "/>
- <input id="ipt_todd" ref="/root/send/srchtodd" inputtype="date" style="left:640px; top:13px; width:100px; height:19px; "/>
- <input id="ipt_pid" ref="/root/send/srchpid" style="left:858px; top:13px; width:100px; height:19px; "/>
- <input id="ipt_pnm" ref="/root/send/srchpnm" disabled="true" style="left:983px; top:13px; width:105px; height:19px; "/>
- <button id="btn_searchpat" class="icon_search" style="left:963px; top:15px; width:16px; height:16px; ">
- <caption/>
- </button>
- <caption id="cap_cmpynm" class="search_name" style="left:571px; top:13px; width:89px; height:17px; ">사업장명 :</caption>
- <caption id="cap_cmpyid" class="search_name" style="left:226px; top:13px; width:99px; height:17px; ">사업장코드 :</caption>
- <input id="ipt_cmpyid" ref="/root/send/srchcmpyid" style="left:330px; top:13px; width:215px; height:19px; "/>
- <input id="ipt_cmpynm" ref="/root/send/srchcmpynm" style="left:663px; top:13px; width:235px; height:19px; "/>
- <caption id="cap_condflag" class="search_name" style="left:205px; top:14px; width:86px; height:17px; ">일자구분 :</caption>
- <select1 id="rdo_condflag" ref="/root/send/srchcondflag" appearance="full" cols="2" overflow="visible" style="left:295px; top:15px; width:115px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>건진일</label>
- <value>H</value>
- </item>
- <item>
- <label>판정일</label>
- <value>J</value>
- </item>
- </choices>
- </select1>
- </group>
- <button id="btn_trgt" class="btn_sw" visibility="visible" group="tab" style="left:0px; top:73px; width:79px; height:22px; ">
- <caption>대상자</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case_trgt");
- btn_trgt.selected = true;
- fViewSrchCntrl("0");
- ]]>
- </script>
- </button>
- <button id="btn_cmpy" class="btn_sw" visibility="visible" group="tab" style="left:79px; top:73px; width:79px; height:22px; ">
- <caption>사업체</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case_cmpy");
- btn_cmpy.selected = true;
- fViewSrchCntrl("1");
- ]]>
- </script>
- </button>
- <select1 id="rdo_linkfileflag" ref="/root/send/srchlinkfileflag" appearance="full" cols="10" overflow="visible" style="left:250px; top:74px; width:100px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/linkfilelst/S280">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <button id="button2" class="btn4_letter3" visibility="hidden" style="left:956px; top:760px; width:56px; height:22px; ">
- <caption>올리기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("open", ",", false, "", "txt", "Text Files(*.txt)|*.txt|All Files (*.*)|*.*");
-
- var fso,ts,tsr;
- var cnt = 1;
- fso = new ActiveXObject("Scripting.FileSystemObject");
- ts = fso.OpenTextFile(fileName);
- model.makeNode("/root/main/drug");
- //alert(readLine +"\r\n" + txt[0] +" " + txt[1]+ " " + txt[2] + " " + txt[3] + " " + txt[4] + " " + txt[5]);
- while(!ts.AtEndOfLine) {
- var readLine = ts.ReadLine();
- var txt = readLine.split(',');
-
- model.makeNode("/root/main/drug/druglst[" + cnt +"]");
- model.makeValue("/root/main/drug/druglst[" + cnt +"]/orddd", txt[0]);
- model.makeValue("/root/main/drug/druglst[" + cnt +"]/pid", txt[1]);
- model.makeValue("/root/main/drug/druglst[" + cnt +"]/cretno", txt[2]);
- model.makeValue("/root/main/drug/druglst[" + cnt +"]/instcd", txt[3]);
- model.makeValue("/root/main/drug/druglst[" + cnt +"]/orddeptcd", txt[4]);
- model.makeValue("/root/main/drug/druglst[" + cnt +"]/orddrid", txt[5]);
- cnt++;
- }
-
- ts.Close();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn4_letter3" visibility="hidden" style="left:1030px; top:760px; width:68px; height:22px; ">
- <caption>보내기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeNode("/root/send/drug");
- for(var i=1; i <= getNodesetCount("/root/main/drug/druglst"); i++) {
- copyNodesetType("/root/send/drug" , "/root/main/drug/druglst[" + i + "]" , "replace");
- submit("TXAHA00105");
- }
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|